package edu.wata.service;

import java.util.List;

import edu.wata.dao.QueryDao;
import edu.wata.domain.Train;

public class QueryService {
	private QueryDao queryDao = new QueryDao();
	private Train train = new Train();

	public List<Train> queryTrain(Train train) {
		return queryDao.queryTrain(train);
	}

//	public boolean loginUser(User user) {
//		boolean flag = false;
//		if (queryDao.checkUser(user.getName(), user.getPassword()) == 1) {
//
//		}
//
//		return flag;
//	}	

	public Train querytrainId(String trainId) {
		train = queryDao.selecttrainId(trainId);
		return train;
	}

}
